package com.xiaoc.bulldozer.common.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xiaoc.bulldozer.common.dao.StatisticUserMapper;
import com.xiaoc.bulldozer.common.dto.StatisticUserDto;
import com.xiaoc.bulldozer.common.dto.StatisticUserQueryDto;
import com.xiaoc.bulldozer.common.model.StatisticUser;
import com.xiaoc.bulldozer.common.service.StatisticUserService;

/**
 * StatisticUser Service 实现类
 * 
 * @author Danfo Yam
 * 
 * @date 2018-10-15 15:40:26
 */
@Service("statisticUserService")
public class StatisticUserServiceImpl implements StatisticUserService {

    @Resource
    private StatisticUserMapper statisticUserMapper;

    @Override
    public Integer getStatisticUserCountByCondition(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getStatisticUserCountByCondition(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUser> getStatisticUserListByCondition(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getStatisticUserListByCondition(statisticUserQueryDto);
    }

    @Override
    public StatisticUser getStatisticUserById(Integer id) {
        return statisticUserMapper.getStatisticUserById(id);
    }

    @Override
    public List<StatisticUser> getAllStatisticUserList() {
        return statisticUserMapper.getAllStatisticUserList();
    }
    
    @Override
    public void save(StatisticUser statisticUser) {
        statisticUserMapper.save(statisticUser);
    }

    @Override
    public void update(StatisticUser statisticUser) {
        statisticUserMapper.update(statisticUser);
    }

    @Override
    public void deleteById(Integer id) {
        statisticUserMapper.deleteById(id);
    }

    @Override
    public List<StatisticUser> countAccount(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.countAccount(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUser> countLoan(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.countLoan(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> getStatisticUserDtoListByCondition(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getStatisticUserDtoListByCondition(statisticUserQueryDto);
    }

    @Override
    public void deleteByTimePeriod(StatisticUserQueryDto statisticUserQueryDto) {
        statisticUserMapper.deleteByTimePeriod(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> costAccount(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.costAccount(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> costCheck(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.costCheck(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> costBalance(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.costBalance(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUser> costCurrentBalance(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.costCurrentBalance(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> getMannagerAndDistributorMessage(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getMannagerAndDistributorMessage(statisticUserQueryDto);
    }

    @Override
    public Integer getMannagerAndDistributorCount(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getMannagerAndDistributorCount(statisticUserQueryDto);
    }

    @Override
    public List<StatisticUserDto> costDetail(StatisticUserQueryDto queryDto) {
        return statisticUserMapper.costDetail(queryDto);
    }

    @Override
    public List<StatisticUserDto> getMannagerAndDistributorRegisterNum(List<Integer> distributeIds,List<Integer> ids, Long startTime, Long endTime) {
        return statisticUserMapper.getMannagerAndDistributorRegisterNum(distributeIds,ids,startTime,endTime);
    }

    @Override
    public List<StatisticUserDto> getMannagerAndDistributorLoanNum(List<Integer> ids, Long startTime, Long endTime) {
        return statisticUserMapper.getMannagerAndDistributorLoanNum(ids,startTime,endTime);
    }

    @Override
    public List<StatisticUserDto> getMannagerAndDistributorPartnerNum(List<Integer> ids, Long startTime, Long endTime) {
        return statisticUserMapper.getMannagerAndDistributorPartnerNum(ids,startTime,endTime);
    }

    @Override
    public List<StatisticUserDto> getLoanCountByTime(StatisticUserQueryDto statisticUserQueryDto) {
        return statisticUserMapper.getLoanCountByTime(statisticUserQueryDto);
    }
}
